import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'main',
      component: () => import('@/layout/mainLayout.vue'),
      redirect: { name: 'index' },
      children: [
        {
          path: 'index',
          name: 'index',
          component: () => import('@/views/home/index.vue')
        }
      ]
    }
  ]
})
